<?php
namespace juven\models {
    \defined( '_JEXEC' ) or die( 'Restricted access' );
    
    class groups extends \juven\libs\Model{
        protected function _init(){
            $this->_tableName = \juven\libs\Tools::getPrefixedTableName("groups");
        }
        
        public function getGroupsList(){
            $this->_db->connect(\juven\libs\juven::config()->db);
                 $r = $this->getAll_Records();
            $this->_db->disconnect();
            if (\count($r)<1){ return array(); }
            return $r;
        }
    }
}
?>
